package cn.cdutetc.library.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 备份记录实体类
 */
@Data
@TableName("backup_record")
public class BackupRecord {
    /**
     * 备份ID
     */
    @TableId(value = "backup_id", type = IdType.AUTO)
    private Integer backupId;

    /**
     * 备份名称
     */
    private String backupName;

    /**
     * 备份编码
     */
    private String backupCode;

    /**
     * 备份路径
     */
    private String backupPath;

    /**
     * 备份大小（字节）
     */
    private Long backupSize;

    /**
     * 备份状态：success/failed/processing
     */
    private String backupStatus;

    /**
     * 备份时间
     */
    private LocalDateTime backupTime;

    /**
     * 备份描述
     */
    private String description;

    /**
     * 创建人ID
     */
    private Integer createdBy;

    /**
     * 创建人姓名
     */
    private String createdByName;
}
